import request from '@/utils/request'

// 创建机构详情
export function createInfoOrganize(data) {
  return request({
    url: '/alipay/info-organize/create',
    method: 'post',
    data: data
  })
}

// 更新机构详情
export function updateInfoOrganize(data) {
  return request({
    url: '/alipay/info-organize/update',
    method: 'put',
    data: data
  })
}

// 删除机构详情
export function deleteInfoOrganize(id) {
  return request({
    url: '/alipay/info-organize/delete?id=' + id,
    method: 'delete'
  })
}

// 获得机构详情
export function getInfoOrganize(id) {
  return request({
    url: '/alipay/info-organize/get?id=' + id,
    method: 'get'
  })
}

// 获得机构详情分页
export function getInfoOrganizePage(query) {
  return request({
    url: '/alipay/info-organize/page',
    method: 'get',
    params: query
  })
}

// 导出机构详情 Excel
export function exportInfoOrganizeExcel(query) {
  return request({
    url: '/alipay/info-organize/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
